add_executable(s7dmn
  s7client.cc s7dmn.cc s7qmap.cc s7query.cc szpmap.cc ../base_daemon.cc
  datatypes.h s7client.h s7dmn.h s7qmap.h s7query.h szpmap.h ../base_daemon.h
)

target_link_libraries(s7dmn
  PRIVATE
    Szarp2
    ${SNAP_LIBRARIES}
)

add_executable(szpmap_test
  szpmap_test.cc szpmap.cc
  szpmap_test.h szpmap.h
)

target_link_libraries(szpmap_test
  PRIVATE
    Szarp2
    ${SNAP_LIBRARIES}
    ${CPPUNIT_LIBRARIES}
)

#add_test(NAME szpmap_test.test COMMAND szpmap_test)	#TODO : buffer overflow
